package com.study.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author yinyin
 * @create 2024/12/19 下午 3:57
 */
@ApiModel(value = "User对象",description = "用户")
public class User {
    private int id;
    @ApiModelProperty(value = "用户名")
    private  String username;
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    @ApiModelProperty(value = "密码")
    private String password;
    private int age;
    private String addr;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + username + '\'' +
                ", age=" + age +
                '}';
    }

    public User() {
    }

    public User(int id, String name, int age) {
        this.id = id;
        this.username = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }





    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
